package com.sciencep.pro.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Sciencep
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class ProChangebase extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目节点ID
     */
    @TableField("proNodeId")
    private String proNodeId;

    @TableField("proId")
    private String proId;
    /**
     * 变更编号
     */
    @TableField("changeNo")
    private String changeNo;

    /**
     * 项目开始周期变更前
     */
    @TableField("oldProStartDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date oldProStartDate;

    /**
     * 项目结束周期变更前
     */
    @TableField("oldProEndDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date oldProEndDate;

    /**
     * 项目开始周期变更后
     */
    @TableField("newProStartDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date newProStartDate;

    /**
     * 项目结束周期变更后
     */
    @TableField("newProEndDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date newProEndDate;

    /**
     * 节点开始周期变更前
     */
    @TableField("oldNodeStartDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date oldNodeStartDate;

    /**
     * 节点结束周期变更前
     */
    @TableField("oldNodeEndDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date oldNodeEndDate;

    /**
     * 节点开始周期变更后
     */
    @TableField("newNodeStartDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date newNodeStartDate;

    /**
     * 节点结束周期变更后
     */
    @TableField("newNodeEndDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date newNodeEndDate;

    /**
     * 变更概述
     */
    @TableField("changeSummary")
    private String changeSummary;

    /**
     * 变更提出日期
     */
    @TableField("changeSubmitDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date changeSubmitDate;

    /**
     * 变更状态
     */
    @TableField("changeStatus")
    private Integer changeStatus;

    /**
     * 审批意见
     */
    @TableField("approOpinions")
    private String approOpinions;

    @TableField("inputHourOld")
    private Double inputHourOld;

    @TableField("inputHourNew")
    private Double inputHourNew;


}
